import axios from "./index";
export function APIgetSliders() {
	return axios.get("/slider/list");
}
export function APIgetLessons(currentCategory: string = "all", offset: number, limit: number) {
	return axios.get(`/lesson/list?category=${currentCategory}&offset=${offset}&limit=${limit}`);
}
export function getLesson<T>(id: string) {
	return axios.get<T, T>(`/lesson/${id}`);
}
